#!/bin/bash

cp /etc/kubernetes/{{ cluster_name }}/pki/ca.*   ./
chmod +x ./gentls.sh
./gentls.sh

kubectl --kubeconfig=/etc/kubernetes/{{ cluster_name }}/admin.conf create -f rbac.yaml
kubectl --kubeconfig=/etc/kubernetes/{{ cluster_name }}/admin.conf create -f strongbox-config.yaml
kubectl --kubeconfig=/etc/kubernetes/{{ cluster_name }}/admin.conf create -f deploy.yaml
kubectl --kubeconfig=/etc/kubernetes/{{ cluster_name }}/admin.conf create -f webhook-config.yaml

